const path = require('path')
function resolve (dir) {
    //__dirname:当前vue.config.js配置文件所处的目录:03_sph
    return path.join(__dirname, dir)
}

module.exports = {
    lintOnSave:false,
    devServer:{
        proxy:{
            "/api":{
                target:"http://39.98.123.211/"
            }
        }
    },
    configureWebpack:{
        resolve:{
            alias: {
                'api': resolve('src/api'),
                'components': resolve('src/components'),
                'mock': resolve('src/mock'),
                'pages': resolve('src/pages'),
                'router': resolve('src/router'),
                'routes': resolve('src/routes'),
                'store': resolve('src/store'),
            }
        }
    }
}